﻿using Encryption.Models;
using System.Text;

namespace Encryption
{
    internal class Program
    {
        static void Main(string[] args)
        {
            ///用户输入明文和密钥
            Console.Write("Please input your plain:");
            string plain = Console.ReadLine();
            Console.Write("Please input your key:");
            string key = Console.ReadLine();

            ///加密
            MyEncoder myencoder = new MyEncoder();
            myencoder.Key = key;
            myencoder.Plain = plain;
            myencoder.Encode();
            ///输出密文
            Console.WriteLine($"Your cypher is: {myencoder.Cypher}");
        }
    }
}